import bbb.Booklist;

import java.util.Scanner;
import ren.*;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 18128
 * Date: 2023-09-25
 * Time: 21:55
 */
public class main {
    public static user caidan()
    {
        System.out.println("请输入你的名字");
        Scanner scan=new Scanner(System.in);
        String name=scan.next();
        System.out.println("请输入你的身份：1.管理员，2.借阅者");
        int choice=scan.nextInt();
        if(choice==1)
        {
            return new gly(name);
        }
        else
        {
            return new yh(name);
        }
    }
    public static void shixian(int ii,user ret,Booklist bookl)
    {
        ret.zrr[ii].work(bookl);
    }
    public static void main(String[] args) {
        Booklist bookl=new Booklist();//先有三本书
         user ret=caidan();//选择菜单
        Scanner sss=new Scanner(System.in);
        while(true)
        {

            int c=ret.xuan();
            ret.chaozuo_hjx(c,bookl);
        }


    }
}
